import random
money=100
s=0
y=0
while money>=100:
    s+=1
    man=input("快选，压大压小？")
    a = random.randint(1, 6)
    b = random.randint(1, 6)
    c = random.randint(1, 6)
    sum = '小' if a + b + c <= 10 else '大'
    if man==sum:
        money+=100
        y+=1
        print(f"恭喜您获得100金币，您的余额为{money}")
    else:
        money-=100
        print(f"很遗憾扣除您100金币，您的余额为{money}")
print(f"游戏结束,您一共玩了{s}轮，胜率为{y/s}")